IPGetGateway


C Specification

#include <dolphin/ip.h>

#define IP_ALEN             4       // IP address length

void IPGetGateway( IPInterface* interface, u8* gateway );

Description

IPGetGateway() gets the default gateway address of the specified interface.

Arguments

interface Pointer to IPInterface to get the gateway address. Use NULL to specify the default network interface.
gateway Pointer to array[IP_ALEN] of u8 that receives the default gateway address.

Return Values

None.

See Also